Skip to content

ext/snmp: Retry no-response test failures - #23237

Draft
LamentXU123 wants to merge 3 commits into
php:masterfrom
LamentXU123:snmp-win
Draft

ext/snmp: Retry no-response test failures#23237
LamentXU123 wants to merge 3 commits into
php:masterfrom
LamentXU123:snmp-win

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Aug 12, 2026

Copy link
Copy Markdown
Member

This adds the SNMP retry pattern to is_flaky_output to retry SNMP tests when it fails.

This also removes the XFAIL section in SNMP tests.

Note: only snmp tests use the No response from ... prefix

@LamentXU123
LamentXU123 requested a review from iluuu1994 August 12, 2026 18:33
@LamentXU123 LamentXU123 changed the title ext/snmp: Put XFAILs under SKIPIF section ext/snmp: Use is_flaky_output in flaky SNMP tests Aug 12, 2026
@LamentXU123
LamentXU123 marked this pull request as draft August 12, 2026 18:59
@LamentXU123 LamentXU123 changed the title ext/snmp: Use is_flaky_output in flaky SNMP tests ext/snmp: Retry no-response test failures Aug 12, 2026
@LamentXU123
LamentXU123 marked this pull request as ready for review August 12, 2026 19:12
@LamentXU123
LamentXU123 marked this pull request as draft August 12, 2026 21:30
Comment thread run-tests.php
'connection refused',
'deadlock',
'mailbox already exists',
'no response from',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a comment why it was added? Harder to follow via git history. Ideally the list shrinks to zero later; most of it sounds like concurrency stuff which we eventually might rather want to find root causes instead of adding retry overhead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talking to external services is inherently flaky.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't mean it's the sole reason. Still think adding a comment why, as in which context, it was deemed necessary to add makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants